package com.atguigu.principle.segregation.segregation1;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description:    B 类通过接口Interface1 依赖(使用) D类，但是只会用到1,4,5方法
 * @create: 2022-01-06 22:45
 **/
public class B {
    public void depend1(Interface1 i){
        i.operation1();
    }
    public void depend4(Interface1 i){
        i.operation4();
    }
    public void depend5(Interface1 i){
        i.operation5();
    }
}
